package cn.com.api.service;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import cn.com.api.entity.*;
import cn.com.api.service.base.*;

/**
 * 
 */
@Service
public interface ApiErpService  {

	//定时抛送订单给erp
	public void addOrder4erpTask();
	
	//查询
	public ApiT_products queryByGoodsId4erp(Integer goods_id);

	//添加
 	public long insertT_products4erp(ApiT_products t_products);
 	
 	//update
	public void updateT_productsStock4erp();
	
 	//add order
	public void addOrder4erp(ApiDingDan order_info);
	
	public void productStock4erp(ApiT_products product_info);

	// 更新erp货品信息
	public int updateT_products4erp(ApiT_products t_products);
	
	//订单生成时 自营订单，通知ERP 并更新库存
	public void newOrderToErp(ApiDingDan dingDan);
	
}
